namespace TeachingManagementSystem.Models
{
    public class User
    {
        public int UserID { get; set; }
        public string? Username { get; set; }
        public string? Password { get; set; } // 实际应用中应加密存储
        public string? FullName { get; set; }
        public string? Email { get; set; }
        public string? Phone { get; set; }
        public UserRole Role { get; set; }
        public bool IsActive { get; set; }
        public DateTime CreatedDate { get; set; }
    }

    public enum UserRole
    {
        Administrator,
        Teacher,
        Student,
        Staff
    }
}